/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cstring>
using namespace std;

int main_95()
{
    char num[]="ABCDE";//
    int id=0;
    for (int i=0;i<strlen(num) ;++i )
    {
        id=id*26+(num[i]-'A');
    }
    printf("%d",id);
	return 0;
}
